<template>
  <div id="checkNews">
    <el-table
      :data="tableData"
      border
      style="width: 100%">
      <el-table-column
        fixed
        prop="writer"
        label="作者"
        width="150">
      </el-table-column>
      <el-table-column
        fixed
        prop="contentUlr"
        label="路径"
        width="150">
      </el-table-column>
      <el-table-column
        prop="time"
        label="时间"
        width="120">
      </el-table-column>
      <el-table-column
        prop="title"
        label="标题"
        width="120">
      </el-table-column>
      <el-table-column
        prop="type"
        label="类型"
        width="120">
      </el-table-column>
      <el-table-column
        fixed="right"
        label="操作"
        width="100">
        <template scope="scope">
          <el-button @click="handleClick" type="text" size="small">查看</el-button>
          <el-button type="text" size="small">编辑</el-button>
        </template>
      </el-table-column>
    </el-table>
<el-button>发布资讯</el-button>
 </div>
</template>

<script>
  export default {
    name: 'checkNews',

    data(){
      return{
        tableData: [{
          writer: '王小虎',
          contentUlr: '233',
          time:  '2016-05-04 17:11:12',
          title: '爱情对对碰',
          type: 'AA'
         
        }, {
           writer: '王小虎',
          contentUlr: '233',
          time:  '2016-05-04 17:11:12',
          title: '爱情对对碰',
          type: 'AA'
          
        }, {
           writer: '王小虎',
          contentUlr: '233',
          time:  '2016-05-04 17:11:12',
          title: '爱情对对碰',
          type: 'AA'
          
        }, {
          writer: '王小虎',
          contentUlr: '233',
          time:  '2016-05-04 17:11:12',
          title: '爱情对对碰',
          type: 'AA'
        }]


      }
    },
    methods:{
       handleClick() {
        console.log(1);
      }


    }
  }
</script>

<style scoped>
  #checkEmail{

  }
</style>
